bitkeeper revision 1.1389.15.6 (4281359ejSQPcJ7qoKDaeTFt7zBKUg)
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 10 May 2005 22:28:46 +0000 (22:28 +0000)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 10 May 2005 22:28:46 +0000 (22:28 +0000)
Clean up #include in a few places, and fix non-CONFIG_SMP builds.
xen/slab.h has unused __ARCH_HAS_SLAB_ALLOCATOR removed, but I added
back include xen/mm.h for the time being -- it can go after ia64 is
cleaned up to include mm.h only where necessary.
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/page_alloc.c
xen/common/schedule.c
xen/drivers/char/console.c
xen/include/asm-x86/shadow.h
xen/include/xen/cpumask.h
xen/include/xen/slab.h

index fb26edc69cea03ca9e292bc9e5501b23fe300745..5a4115c82eeecf5c81d754fc2d3e2b8b4cada7cb 100644 (file)
@@ -28,6 +28,7 @@
 #include <xen/sched.h>
 #include <xen/spinlock.h>
 #include <xen/slab.h>
+#include <xen/mm.h>
 #include <xen/irq.h>
 #include <xen/softirq.h>
 #include <xen/shadow.h>
index fb2db1b30fc06ce39072b45680030fe22ec1914d..491c2f22ac0001a36d13cccc235fc09eee9c381f 100644 (file)
@@ -34,6 +34,7 @@
 #include <xen/sched-if.h>
 #include <xen/softirq.h>
 #include <xen/trace.h>
+#include <xen/mm.h>
 #include <public/sched_ctl.h>
 
 /* opt_sched: scheduler - default to Borrowed Virtual Time */
index f20d664c910040a91e3e7e86c958f3d6fdf925e7..d9eb0c474a9340a5ef18da66b4399024a8bf108e 100644 (file)
@@ -17,8 +17,8 @@
 #include <xen/console.h>
 #include <xen/serial.h>
 #include <xen/keyhandler.h>
+#include <xen/mm.h>
 #include <asm/uaccess.h>
-#include <asm/mm.h>
 #include <asm/debugger.h>
 #include <asm/io.h>
 
index d991a51f93f5fa673f0f272cc1c213b48fce8aa6..202453194f2b9d878b7e5d2d252c0761389787c7 100644 (file)
@@ -26,6 +26,7 @@
 #include <xen/types.h>
 #include <xen/perfc.h>
 #include <xen/sched.h>
+#include <xen/mm.h>
 #include <asm/processor.h>
 #include <asm/domain_page.h>
 #include <public/dom0_ops.h>
index 33723fbd9a03b32bfa5bf0115f07c9bb82b91e3b..48814478429594ab2d447bfc14c114c856e04d51 100644 (file)
@@ -9,7 +9,9 @@
 
 typedef u32 cpumask_t;
 
+#ifndef cpu_online_map
 extern cpumask_t cpu_online_map;
+#endif
 
 static inline int cpus_weight(cpumask_t w)
 {
index c4c8231f78a2a54ed237689a5e1e359d5eaeba77..a3a7daf7d6e25a4a7e944fbff71b42beef724a21 100644 (file)
@@ -3,12 +3,7 @@
 #define __SLAB_H__
 
 #include <xen/config.h>
-
-#ifdef __ARCH_HAS_SLAB_ALLOCATOR
-
-#include <asm/slab.h>
-
-#else
+#include <xen/mm.h>
 
 /* Allocate space for typed object. */
 #define xmalloc(_type) ((_type *)_xmalloc(sizeof(_type), __alignof__(_type)))
@@ -32,6 +27,4 @@ static inline void *_xmalloc_array(size_t size, size_t align, size_t num)
        return _xmalloc(size * num, align);
 }
 
-#endif /* __ARCH_HAS_SLAB_ALLOCATOR */
-
 #endif /* __SLAB_H__ */